package _10OberserverDesign;

public class Main10 {
    public static void main(String[] args) {
        Obersevers_Users obersevers_users1 = new Obersevers_Users();
        Obersevers_Users obersevers_users2 = new Obersevers_Users();
        Oberseverd_BolgUser oberseverd_bolgUser = new Oberseverd_BolgUser();
       // oberseverd_bolgUser.addObserver(obersevers_users1);
        oberseverd_bolgUser.addObserver(obersevers_users2);
        System.out.println(oberseverd_bolgUser.countObservers());
        //oberseverd_bolgUser.publish("旧博客","快来看啊！");
        oberseverd_bolgUser.publish("新博客","快来看啊！");
    }
}
